package main
/**
创建协成
 */
import (
	"fmt"
	"time"
)

func main() {
	// 创建协成
	go test()
	for {
		fmt.Println(111)
		time.Sleep(time.Second)
	}
}

func test() {
	for {
		fmt.Println(2222)
		time.Sleep(time.Second)
	}
}
